﻿<div style="float: right">
    Song:&nbsp&nbsp
    <input type="text" id="SearchTextSong">
    <select id="song">
        <option value="Title">Title</option>
        <option value="Artist">Artist</option>
        <option value="Genre">Genre</option>
    </select>
    <input type="button" onclick="SearchSong()" id="SearchButtonSong" value="Search" />
    <br />
       Album:
    <input type="text" id="SearchTextAlbum">
    <select id="album">
        <option value="Title">Title&nbsp&nbsp&nbsp&nbsp</option>
    </select>
    <input type="button" onclick="SearchAlbum()" id="SearchAlbumButton" value="Search" />

    <br />
</div>






@* ----SCRIPTS---- *@


<script>
    function SearchSong() {
        document.getElementById("ssearch").value = document.getElementById("SearchTextSong").value;
        document.getElementById("sfilter").value = document.getElementById("song").value;

        document.getElementById("SearchSong").click();
    }

    function SearchAlbum() {

        document.getElementById("asearch").value = document.getElementById("SearchTextAlbum").value;

        document.getElementById("SearchAlbum").click();
    }
    $("#SearchTextSong").keyup(function (event) {
        if (event.keyCode == 13) {
            $("#SearchButtonSong").click();
        }
    });

    $("#SearchTextAlbum").keyup(function (event) {
        if (event.keyCode == 13) {
            $("#SearchButtonAlbum").click();
        }
    });
</script>


<form action="/Products/SearchSong" method="post" style="display: inline">
    <input type="text" name="search" id="ssearch" hidden="hidden" />
    <input type="text" name="filter" id="sfilter" hidden="hidden" />
    <input type="submit" name="submit" id="SearchSong" hidden="hidden" />
</form>

<form action="/Products/SearchAlbum" method="post" style="display: inline">
    <input type="text" name="search" id="asearch" hidden="hidden" />
    <input type="submit" name="submit" id="SearchAlbum" hidden="hidden" />
</form>

